package es

import "github.com/elastic/go-elasticsearch/v7"

var client *elasticsearch.Client

func init() {
	var err error
	client, err = elasticsearch.NewDefaultClient()
	if err != nil {
		panic("es初始化失败")
	}
}

func Client() *elasticsearch.Client {
	return client
}
